<?php $view = $this; if(1!=1)$view = new View(); ?>
<?php $view->import('header');?>

  <div id="header">
	<?php $view->import('nav');?>
  </div>
  <div id="mainContent">
    <div id="sidebar">
    	<?php $view->import('sidebar');?>
	</div>
    <div id="content">
		<table style="width:100%;" class="data">
        <tr><th>DiaryDate</th><th>AccountName</th><th>Income</th><th>Expend</th><th>Remark</th></tr>
        <?php foreach($view->RecordData as $k=>$v):?>
        <tr>
        <td><?php echo date('Y-m-d H:i:s', $v['DiaryDate']);?>&nbsp;</td>
        <td><?php echo $v['AccountName']?>&nbsp;</td>
        <td><?php echo $v['Income']?>&nbsp;</td>
        <td><?php echo $v['Expend']?>&nbsp;</td>
        <td><?php echo $v['Remark']?>&nbsp;</td>
        </tr>
        <?php endforeach;?>
        
        </table>
	</div>
  </div>

<?php $view->import('footer');?>